package com.qtenv.datasync.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 实时数据采集表（大表）
 * </p>
 *
 * @author CBL
 * @since 2022-07-25
 */
@Data
@TableName("dm_realtimegatherdata")
@ApiModel(value = "Realtimegatherdata对象", description = "实时数据采集表（大表）")
public class Realtimegatherdata implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("设备归属水司")
    private String tenantId;

    @ApiModelProperty("终端编号")
    @TableId("TerminalID")
    private String terminalID;

    @ApiModelProperty("用户主键")
    @TableField("UserID")
    private String userID;

    @ApiModelProperty("累计流量")
    @TableField("TotalFlow")
    private BigDecimal totalFlow;

    @ApiModelProperty("正向流量")
    @TableField("ReadNumber")
    private BigDecimal readNumber;

    @ApiModelProperty("反转流量")
    @TableField("ReverseNumber")
    private BigDecimal reverseNumber;

    @ApiModelProperty("瞬时流量")
    @TableField("InstantNumber")
    private BigDecimal instantNumber;

    @ApiModelProperty("瞬时流速")
    @TableField("InstantVelocity")
    private BigDecimal instantVelocity;

    @ApiModelProperty("管网压力")
    @TableField("Pressure")
    private BigDecimal pressure;

    @ApiModelProperty("终端电压")
    @TableField("TerminalVol")
    private BigDecimal terminalVol;

    @ApiModelProperty("终端信号强度")
    @TableField("TerminalCSQ")
    private Integer terminalCSQ;

    @ApiModelProperty("信号描述")
    @TableField("TerminalCSQDescribe")
    private String terminalCSQDescribe;

    @ApiModelProperty("阀门状态")
    @TableField("ValveState")
    private Integer valveState;

    @ApiModelProperty("终端时间")
    @TableField("TerminalTime")
    private String terminalTime;

    @ApiModelProperty("抄表时间")
    @TableField("ReadDate")
    @JsonFormat(pattern = "YYYY-MM-dd HH:mm:ss")
    private Date readDate;

    @ApiModelProperty("报警状态(0-无报警 1-有报警)")
    @TableField("WarnFlag")
    private Integer warnFlag;

    @ApiModelProperty("警告")
    @TableField("Warning")
    private String warning;

    @ApiModelProperty("数据获取的类型(1:自动获取)")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("大分区的ID")
    @TableField("AreaID")
    private String areaID;

    @ApiModelProperty("分区名称")
    @TableField("AreaName")
    private String areaName;

    @ApiModelProperty("口径")
    @TableField("Caliber")
    private Integer caliber;

    @ApiModelProperty("采集频率")
    @TableField("Frequency")
    private String frequency;

    @ApiModelProperty("平台表单自增主键")
    @TableField("ID")
    private Integer id;


}